<script>
	export default {
		onLaunch: function() {
			// console.log('App Launch');
			var that = this;
			uni.getSystemInfo({
			    success(e) {
			        /* 窗口宽度大于420px且不在PC页面且不在移动设备时跳转至 PC.html 页面 */
			        if (e.windowWidth > 420 && !window.top.isPC && !/iOS|Android/i.test(e.system)) {
			            // alert("appvue:"+window.location.href);
			            // uni.setStorageSync('location_href', window.location.href);
			            // window.location.pathname = './APP.vue';
						console.log('H5')
			        }else{
						console.log('APP')
						return false
					}
			    }
			})
		},
		onShow: function() {
			// console.log('App Show');
		},
		onHide: function() {
			// console.log('App Hide');
		}
	};
</script>

<style lang="scss">
	
	@import "@/uni_modules/uview-ui/index.scss";
	
	
	@import url("@/static/css/base.css");
	@import url("@/static/css/app.css");
	@import url("@/static/css/f2bpm_bootstrap.css");
	@import url("@/workspaces/styles/common.scss");
	/* @import url("/static/awesome/css/font-awesome.css"); */


	/* 解决头条小程序组件内引入字体不生效的问题 */
	@font-face {
		font-family: texticons;
		font-weight: normal;
		font-style: normal;
		src: url('@/static/ttf/iconfont.ttf') format('truetype');
	}
	
	@font-face{
		font-family: 'pf';
		src: url('@/static/newimg/font/PingFangJianChangGuiTi-2.ttf') format('truetype');
	}
	
	view{
		font-family: pf;
	}
</style>
